<?php
namespace app\api\controller;

use app\BaseController;
use app\model\News as SelfModel;
use app\model\NewsType;

use think\facade\Cookie;
use think\Response;
use think\Request;
class News extends Base
{


    public function initialize()
    {
        parent::initialize();
        $this->model = "\app\model\News";
        $this->list_rows = 10;
        $this->msg = '新闻';
        $this->order = ['sort'=>'asc','id'=>'desc'];
        $this->status = [['status','=','1']];
        $this->view = ['id','title','type_id','type_title','single_pic','describe','author','create_time','sort','status'];
        $this->index = ['id','title','type_id','type_title','single_pic','describe','author','create_time'];
        $this->all = ['id','title','type_id','type_title','single_pic','describe','author','create_time'];
        $this->append = [];
        //$this->hidden = ['update_time','delete_time','sort','status'];
    }




}
